<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepage
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Controller.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */

class Sitepage_Widget_MostviewedSitepageController extends Engine_Content_Widget_Abstract 
{
  public function indexAction() 
  {
    //GET SITEPAGE FOR MOST VIEWED
    $this->view->sitepages = Engine_Api::_()->sitepage()->getLising('Most Viewed List');

    if (!(count($this->view->sitepages) > 0)) { 
			return $this->setNoRender();
		}
  }
}

?>